package cc.messcat.dao.helpperson;


import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import cc.messcat.common.dao.BaseDao;
import cc.messcat.common.model.Pager;
import cc.messcat.entity.fupin.PoorFamily;
import cc.messcat.entity.helpPerson.HelpPerson;
import cc.messcat.entity.helpUnits.HelpUnits;
import cc.messcat.entity.system.McUser;

public interface HelppersonDao extends BaseDao<HelpPerson>{

	List<HelpPerson> getPageNew(String sql);

	boolean helppesonJudge(Long id);

	List<PoorFamily> listPoorFamily(Long id);

	void updateHelpPersonAndPoorFamily(ArrayList<PoorFamily> unaffectedPF,Long id);

	List<HelpPerson> getByHelpUnit(Long id);


	void updateHelpPersonAndPoorFamily(Long id);

	List<Map<Object,Object>> checkHelpPersonAndPoorFamily(Long id);

	Pager listHelpPerson(Integer pageNo, Integer pageSize, McUser user, String unitName, String name, String idNumber,
		String tel);

	List<Map<String, Object>> listPoorFamilyByHelpPerson(Long helpPersonID);

	List<HelpUnits> getHelpUnitByHelpPersonID(Long id);

}
